#include "customTagParser.h"
#include "common.h"

int main(int argc,char **argv)
{
	int i;
	keyvaluecontainer container;
	container.keyarray = (char **) malloc (sizeof(char *) * 3);
	container.valuearray = (char **) malloc (sizeof(char *) * 3);
	for (i = 0; i < 3; i++)
	{
		container.keyarray[i] = (char *) malloc (sizeof(char) * SMALL_BUFFER_SIZE);	
		container.numelements++;
	}
	splitLine("lang,author,date",container.keyarray,",");
	printf("\nFor %s - ",argv[1]);
	if (getNamedAttributes(argv[1],&container) > 0)
	{
		for (i = 0; i < container.numelements; i++)
		{
			printf("\n%s:%s",container.keyarray[i],container.valuearray[i]);
		}
	}
	printf("\n");
}
